function Throttle(fn,delay){
    let timer;
    return function (...args) {
        // 判断定时器是否存在，清除定时器
        if(timer) {
            clearTimeout(timer)
        }
        let conext = this
        timer = setTimeout(() => {
            fn.apply(conext,args)
        },delay)
    }
}